﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/MasterPage.master" AutoEventWireup="true"
    CodeFile="NewsList.aspx.cs" Inherits="UserPower_NewsList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabTitle" runat="Server">
    <%= Resources.Resource.InformationList%><%--信息列表--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="GridDivCss">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <IMC:GridView ID="GridviewNewsList" runat="server" PageSize="5" AllowPaging="True"
                    OnPageIndexChanging="GridviewNewsList_PageIndexChanging" OnRowDataBound="GridviewNewsList_RowDataBound">
                    <Columns>
                        <asp:BoundField HeaderText="<%$ Resources:Resource,SerialNumber%>" /><%--序号--%>
                        <asp:TemplateField HeaderText="<%$ Resources:Resource,Theme%>"><%--主题--%>
                            <ItemTemplate>
                                <a href="#" class="logoa" onfocus="this.blur()" onclick="javascript:window.open('NewsDetail.aspx?NewID=<%#Eval("NewID") %>','','width=900,height=500,top=100,left=200,toolbar=no, menubar=no, scrollbars=auto, resizable=no,location=no, status=no')">
                                    <font size="2" color="maroon">
                                        <%#Eval("NewsTitle")%></font></a>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField><%--发布时间--%>
                        <asp:BoundField DataField="PublishDateTime" HeaderText="<%$ Resources:Resource,PublishTime%>" DataFormatString="{0:yyyy-MM-dd}" />
                    </Columns>
                </IMC:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
